import * as req from '@/request';

export async function list(
  params?: { [key: string]: any },
  sorter?: { [key: string]: any },
  filter?: { [key: string]: any },
) {
  return req.post<API.CheckScheduleList>('/checkschedule/list',params,sorter,filter,);
}

export async function get() {
  return req.postForm<API.CheckScheduleModel>(
    '/checkschedule/get'
  );
}

export async function create(data: any) {
  return req.postJson<API.Result>('/checkschedule/create', data);
}

export async function update(data: any) {
  return req.postJson<API.Result>('/checkschedule/update', data);
}

export async function remove(data: {ver: any}) {
  return req.post<API.Result>('/checkschedule/delete', data);
}

export async function status(data: {keys: any[], status: boolean}) {
  return req.post<API.Result>('/checkschedule/status', data);
}

export async function logs(
  params?: { [key: string]: any },
  sorter?: { [key: string]: any },
  filter?: { [key: string]: any },
) {
  return req.post<API.CheckScheduleLogList>('/checkschedule/logs',params,sorter,filter,);
}

export async function removeLogs(data: {keys: any[]}) {
  return req.post<API.Result>('/checkschedule/deletelogs', data);
}



